/**
 *
 */
package com.mmlc.network.filter;

import com.androidnetframe.BaseParentActivity;
import com.androidnetframe.httputil.BaseRequestFilterLayer;
import com.androidnetframe.httputil.EntryPageName;
import com.mmlc.network.requestbean.UserDetailRequestBean;

/**
 * @author 何强
 *         2015-12-18
 * @修改 张园汀 2015-12-30
 */
public class UserDetailFilter extends BaseRequestFilterLayer {
    public UserDetailRequestBean requestBean = new UserDetailRequestBean();

    public UserDetailFilter(BaseParentActivity context) {
        super(context);
        requestBean.method = "getUserInfo";
        makeRequestParams.entryPageName = EntryPageName.n1_a + "";
        //告知后台框架，是否有携带请求参数
        makeRequestParams.setReqeustBean(requestBean, true);
    }

    /**数据请求成功并解析成功，将会调用本方法*//*
    @Override
	public void getResultSuccess(String responseString,Object obj) {
		App.diskCache.cacheString(getRequestURL(),responseString);
	}

	*//**无网的时候会被回调*//*
	@Override
	public String noNet() {
		return App.diskCache.getCacheString(getRequestURL());
	}*/
}
